//3.  将上题中存放的文件 的内容读取出来并显示
#include<stdio.h>
int main(int argc,char** argv)
{
	if(argc < 2)
	{
		printf("notice: %s  file\n",argv[0]);
		return -1;
	}
	FILE *fp;
	if((fp = fopen(argv[1],"r")) == NULL)
	{
		puts("读取文件失败！");
		return -1;
	}
	char ch;
	ch = fgetc(fp);
	while(ch != EOF)
	{
		putchar(ch);
		ch = fgetc(fp);
	}
	printf("\n");
	fclose(fp);
	return 0;
}
